{include_core file="lib/header.html" title="我的退款"}
<div class="content">
  <br><br>
  <div class="container clearfix">
    <!--start:我的退款-->
    <div class="refund">
      <div class="cart-title">我的退款</div>
      <div class="clearfix">
        <div class="refund-order left">
          <div class="title1">退款/退货商品</div>
          <div class="pic"><a href='{AnUrl("goods/`$order_relation_info.goods_id`")}'><img src="{_image($order_relation_info.image, 'middle')}"></a></div>
          <div class="refund-order-detail {if $k > 0}hide{/if} js_goodsInfoDiv{$k} js_goodsInfoDiv">
            <dl class="clearfix">
              <dt>商品名称</dt>
              <dd>{$order_relation_info.goods_title}</dd>
            </dl>
            <dl class="clearfix">
              <dt>商品数量</dt>
              <dd>{$order_relation_info.goods_num}</dd>
            </dl>
            <dl class="clearfix">
              <dt>商品价格</dt>
              <dd>￥{$order_relation_info.goods_price}</dd>
            </dl>
          </div>
          <div class="refund-order-detail">
            <dl class="clearfix">
                <dt>商品总价</dt>
                <dd>￥{$order_info.price}</dd>
              </dl>
            <dl class="clearfix">
              <dt>成交时间</dt>
              <dd>{substr($order_info.add_time,0,10)}</dd>
            </dl>
            <dl class="clearfix">
              <dt>订单号</dt>
              <dd>{order_helper::order_id_encode($order_info.id)}</dd>
            </dl>
            <dl class="clearfix">
              <dt>发票</dt>
              <dd>{if $order_info.invoice_title}{$order_info.invoice_title}{else}无发票{/if}</dd>
            </dl>
          </div>
        </div>
        <div class="refund-main right">
          {if $refund_info.status == 1}
          <div class="refund-status">
            <h3 class="title">请等待客服处理退款</h3>
            <div class="txt">您的退款申请将在7日内处理，请耐心等待！</div>
            <a href='{AnUrl("order/refund_cancel?relation_id=`$order_relation_info.id`")}' class="refund-concel">取消退款</a>
          </div>
          {elseif $refund_info.status == 2}
          <div class="refund-status">
            <h3 class="title">客服已经接受您的退款</h3>
            <div class="txt">您的退款申请将在3日内处理，请耐心等待！</div>
          </div>
          {elseif $refund_info.status == 3}
          <div class="refund-status">
            <h3 class="title">退款成功！</h3>
            <div class="txt">退款金额：{$order_info.price}</div>
            <div class="txt">退款完成时间：{$refund_info.update_time}</div>
          </div>
          {elseif $refund_info.status == 4}
          <div class="refund-status">
            <h3 class="title">退款失败！</h3>
            <div class="txt">退款完成时间：{$refund_info.update_time}</div>
          </div>
          {/if}
        </div>
      </div>
    </div>
    <!--end:我的退款-->
  </div>
</div>
{include_core file="lib/footer.html"}